<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<script>
    // async function main() {
    //     return 100
    // }
    // const res = await main()
    // console.log(res)

    async function main() {
        console.log(111)
        const res1 = await new Promise(resolve => setTimeout(() => resolve(1), 1000));
        console.log(res1)
        console.log(222)
        console.log(333)
    }

    main()

    console.log(555)
    console.log(666)
</script>
</body>
</html>